// vue.config.js
module.exports = {
    // options...
    publicPath: './',
    devServer: {
        proxy: {
            '/apis/auth/v1/create_token': {
                target: 'https://canary.speech.sogou.com/apis/auth/v1/create_token',
                changeOrigin: true,
                secure: false,
                pathRewrite: {
                  '^/apis/auth/v1/create_token': ''
                },
                logLevel: 'debug'
            },
            '/apis/asr/v1/recognize': {
                target: 'https://api.zhiyin.sogou.com/apis/asr/v1/recognize',
                changeOrigin: true,
                secure: false,
                pathRewrite: {
                  '^/apis/asr/v1/recognize': ''
                },
                logLevel: 'debug'
            }
        }
    }
}